HTML (HyperText Markup Language) is the standard language used to create and structure web pages. It uses a system of tags to define elements like headings, paragraphs, links, images, and more. Browsers read HTML code to display content properly on websites.
Key Features of HTML:
Basic Parts of HTML:
!remove the 'spaces'¡
1. < !DOCTYPE html > → Tells the browser it's an HTML document.
2. < html > → The main container of the webpage.
3. < head > → Contains information about the page (like the title).
4. < body > → Holds everything you see on the webpage.
Common Tags:
Headings: < h1 > Title < /h1 > (largest)
< h2 > Subtitle < /h2 >
Paragraphs: < p > This is a paragraph. < /p >
Links: < a href= " https://example.com " > Click Here < /a >
Images: < img src= " image.jpg " alt= Description ">
Lists:
Unordered: < ul > < li > Item 1 li >
< li > Item 2 li> ul>
Ordered: < ol > < li > First li>
< li > Second li > ol >
HTML is easy to learn because it’s just tags and structure—no complicated coding!